package me.springboot.mybatis.common.utils;

import java.io.File;

public class Constants  {
	
	private static final long	serialVersionUID			= 1234135065937991641L;
	/**
	 * session：ip
	 */
	public static final String SESSION_KEY_IP				= "SESSION_IP";
	/**
	 * session：mac
	 */
	public static final String SESSION_KEY_MAC				= "SESSION_MAC";
	
	/**
	 * 当前登录用户
	 */
	public static final String SESSION_KEY_USER			= "SESSION_USER";
	
	
	/**
	 * 当前登录用户菜单
	 */
	public static final String SESSION_KEY_USER_MENUS_JSON	= "userMenusJson";
	
	/**
	 * 登录验证码
	 */
	public static final String SESSION_KEY_RAND			= "rand";
	
	/**
	 * 127.0.0.1
	 */
	public static final String LOCALHOST_V4				= "127.0.0.1";
	
	/**
	 * 0:0:0:0:0:0:0:1
	 */
	public static final String LOCALHOST_V6				= "0:0:0:0:0:0:0:1";
	
	/****************** 业务相关常量 结束 **************************/
	
	/****************** 通用常量 开始 **************************/
	/**
	 * DIC_TYPE:CODE 用户参数
	 */
	public static final String USER_PARAMETERTYPE			= "USER_PARAMETERTYPE";
	
	/**
	 * 参数格式错误
	 */
	public static final String PARAMETERS_FORMATTING_ERROR	= "参数格式错误";
	/**
	 * 缺少参数
	 */
	public static final String MISSING_PARAMETERS			= "缺少参数";
	/**
	 * 查询失败
	 */
	public static final String QUERY_FAIL					= "查询失败";
	/**
	 * 无数据
	 */
	public static final String NO_DATAS					= "数据不存在";
	/**
	 * 添加失败
	 */
	public static final String ADD_FAIL					= "添加失败";
	/**
	 * 记录已存在
	 */
	public static final String EXISTING_RECORD				= "记录已存在";
	/**
	 * Session失效
	 */
	public static final String SESSION_INVALID				= "当前登录用户身份验证过期";
	/**
	 * 没有权限
	 */
	public static final String NO_POWER					= "没有权限 ";
	/**
	 * 账号已经被绑定
	 */
	public static final String ACCOUNT_HAVE_BINDED			= "该账号已经被绑定了！";
	/**
	 * 该业主已经分配了账号
	 */
	public static final String PROPRIETOR_HAVE_BINDED_USER	= "该业主已经绑定账号！";
	/**
	 * 修改用户角色成功
	 */
	public static final String EDIT_USERROLE_SUCCESS		= "修改用户角色成功！";
	/**
	 * ELSE
	 */
	public static final String ELSE						= "ELSE ";
	/**
	 * grid传递分页页码page参数名
	 */
	public static final String PAGE						= "page";
	/**
	 * grid传递分页页数rows参数名
	 */
	public static final String ROW							= "rows";
	/**
	 * SQL倒序
	 */
	public static final String SORT_DESC					= "desc";
	/**
	 * SQL正序
	 */
	public static final String SORT_ASC					= "asc";
	
	/**
	 * 查询字段
	 */
	public static final String SEARCH_KEY_Q				= "q";
	/**
	 * 返回页面key值：id
	 */
	public static final String ID							= "id";
	/**
	 * 返回页面key值：success
	 */
	public static final String SUCCESS						= "success";
	/**
	 * 返回页面key值：message
	 */
	public static final String MESSAGE						= "message";
	
	/**
	 * 编码格式UTF-8
	 */
	public static final String UTF8						= "UTF-8";
	
	/**
	 * 编码格式GBK
	 */
	public static final String GBK							= "GBK";
	
	/**
	 * 编码格式GB2312
	 */
	public static final String GB2312						= "GB2312";
	
	/**
	 * Space
	 */
	public static final String HALF_SIZE_SPACE				= " ";
	
	/**
	 * 空字符串
	 */
	public static final String NULLSTRING					= "";
	
	/**
	 * 斜杠
	 */
	public static final String SLASH						= "/";
	
	/**
	 * 中划线
	 */
	public static final String HALF_SIZE_HYPHEN			= "-";
	
	/**
	 * 下划线
	 */
	public static final String UNDERLINE					= "_";
	/**
	 * 波浪号
	 */
	public static final String TILDE						= "~";
	
	/**
	 * 反斜杠
	 */
	public static final String WQ							= "\"";
	
	/**
	 * 点
	 */
	public static final String DOT							= ".";
	/**
	 * 空格
	 */
	public static final char	CHAR_BLANK					= ' ';
	/**
	 * 冒号
	 */
	public final static String COLON						= ":";
	/**
	 * 分号
	 */
	public final static String SEMICOLON					= ";";
	/**
	 * 逗号
	 */
	public final static String COMMA						= ",";
	/**
	 * 文件分隔符
	 */
	public final static String FILE_SEPARATOR				= File.separator;
	
	/**
	 * 换行（CRLF）
	 */
	public static final String CRLF						= "\r\n";
	
	/**
	 * 换行（CR）0x0d
	 */
	public static final String CR							= "\r";
	
	/**
	 * 换行（LF）0x0a
	 */
	public static final String LF							= "\n";
	
	/**
	 * tab
	 */
	public static final String TAB							= "\t";
	
	/**
	 * HTTP
	 */
	public static final String HTTP						= "http";
	
	/**
	 * HTTPS
	 */
	public static final String HTTPS						= "https";
	
	/**
	 * 后缀PDF
	 */
	public static final String EXTENSION_PDF				= ".pdf";
	
	/**
	 * 后缀HTML
	 */
	public static final String EXTENSION_HTML				= ".html";
	
	/**
	 * 后缀PNG
	 */
	public static final String EXTENSION_PNG				= ".png";
	
	/**
	 * 后缀TXT
	 */
	public static final String EXTENSION_TXT				= ".txt";
	
	/**
	 * 后缀XML
	 */
	public static final String EXTENSION_XML				= ".xml";
	
	/**
	 * 后缀XLS
	 */
	public static final String EXTENSION_XLS				= ".xls";
	
	/**
	 * 后缀XLSX
	 */
	public static final String EXTENSION_XLSX				= ".xlsx";
	
	/**
	 * 美国语言
	 */
	public static final String LANGUAGE_USE				= "use";
	/**
	 * 中国语言
	 */
	public static final String LANGUAGE_CN					= "cn";
	
	/**
	 * 公用消息文件
	 */
	public static final String MESSAGE_COMMON				= "/message_common.xml";
	
	/**
	 * 业务
	 */
	public static final String MESSAGE_BUSINESS			= "/message_business.xml";
	
	/**
	 * 共通配置文件
	 */
	public static final String CONFIG_COMMON				= "/config_common.xml";
	
	/**
	 * ?
	 */
	public static final String REQ_OPR						= "?";
	
	/**
	 * 地址
	 */
	public static final String MAIL_PARA_TO_ADDRESS		= "toAddress";
	
	/**
	 * title
	 */
	public static final String MAIL_PARA_TITLE				= "title";
	
	/**
	 * mail内容
	 */
	public static final String MAIL_PARA_BODY				= "body";
	
	/**
     * 
     */
	public static final String MAIL_PARA_REQUIREMENT		= "requirement";
	
	/**
	 * result
	 */
	public static final String NODE_RESULT					= "result";
	
	/**
	 * cd
	 */
	public static final String NODE_ATTRIBUTE_CD			= "cd";
	
	/**
	 * =
	 */
	public static final String EQUAL_OPR					= "=";
	
	/**
	 * &
	 */
	public static final String AND_OPR						= "&";
	
	/**
	 * CONTENT TYPE
	 */
	public static final String CONTENT_TYPE_XML			= "text/xml;charset=UTF-8";
	
	/**
	 * CONTENT TYPE
	 */
	public static final String CONTENT_TYPE_DOWNLOAD		= "application/x-download";
	
	/**
	 * HTTP 200
	 */
	public static final int		HTTP_STATUS_NORMAL			= 200;
	
	/**
	 * HTTP 400
	 */
	public static final int		HTTP_STATUS_ERROR			= 400;
	
	/**
	 * String 0
	 */
	public static final String STRING_ZERO					= "0";
	
	/**
	 * String 1
	 */
	public static final String STRING_ONE					= "1";
	
	/**
	 * String 2
	 */
	public static final String STRING_TWO					= "2";
	
	/**
	 * String 3
	 */
	public static final String STRING_THREE				= "3";
	
	/**
	 * String 4
	 */
	public static final String STRING_FOUR					= "4";
	
	/**
	 * String 5
	 */
	public static final String STRING_FIVE					= "5";
	
	/**
	 * String 6
	 */
	public static final String STRING_SIX					= "6";
	
	/**
	 * String 7
	 */
	public static final String STRING_SEVEN				= "7";
	
	/**
	 * String 8
	 */
	public static final String STRING_EIGHT				= "8";
	
	/**
	 * String 9
	 */
	public static final String STRING_NINE					= "9";
	
	/**
	 * String 10
	 */
	public static final String STRING_TEN					= "10";
	
	/**
	 * String -1
	 */
	public static final String STRING_MINUS_ONE			= "-1";
	
	/**
	 * INT -1
	 */
	public static final Integer INT_MINUS_ONE				= -1;
	
	/**
	 * INT 0
	 */
	public static final int		INT_ZERO					= 0;
	
	/**
	 * INT 1
	 */
	public static final int		INT_ONE						= 1;
	
	/**
	 * INT 2
	 */
	public static final int		INT_TWO						= 2;
	
	/**
	 * INT 3
	 */
	public static final int		INT_THREE					= 3;
	
	/**
	 * INT 4
	 */
	public static final int		INT_FOUR					= 4;
	
	/**
	 * INT 5
	 */
	public static final int		INT_FIVE					= 5;
	
	/**
	 * INT 6
	 */
	public static final int		INT_SIX						= 6;
	
	/**
	 * INT 7
	 */
	public static final int		INT_SEVEN					= 7;
	
	/**
	 * INT 8
	 */
	public static final int		INT_EIGHT					= 8;
	
	/**
	 * INT 9
	 */
	public static final int		INT_NINE					= 9;
	
	/**
	 * INT 10
	 */
	public static final int		INT_TEN						= 10;
	
	/**
	 * 登录错误次数
	 */
	public static final String SESSION_KEY_ERRORTIMES		= "errortimes";
	
	/**
	 * 车辆离线时间
	 */
	public static final long	OFFLINE_TIME				= 1440;
	
	/**
	 * 默认点计算距离
	 */
	public static final Integer DEFAULT_POINT_DISTANCE		= 500;
	
	/**
	 * 默认区域计算距离
	 */
	public static final Integer DEFAULT_AREA_DISTANCE		= 500;
	
	/**
	 * 上海中心点坐标
	 */
	public static final String MAP_CENTER_SHANGHAI			= "121.4726440000,31.231706000";
	
	/**
	 * 上海中心点坐标 经度
	 */
	public static final String MAP_CENTER_LON				= "121.472644";
	
	/**
	 * 上海中心点坐标 纬度
	 */
	public static final String MAP_CENTER_LAT				= "31.231706";
	
	/**
	 * 默认地图缩放层级
	 */
	public static final Integer MAP_ZOOM_DEFAULT			= 10;
	/**
	 * 地图缩放层级 14
	 */
	public static final Integer MAP_ZOOM_MAX				= 14;
	/**
	 * gps一圈最大里程
	 */
	public static double		MONTIOR_GPSMILE_MAX			= 16777.215;
	
	/**
	 * vehicle
	 */
	public static final String CONTEXT_VEHICLE				= "CONTEXT_VEHICLE";
	/**
	 * company
	 */
	public static final String CONTEXT_COMPANY				= "CONTEXT_COMPANY";
	
	public static final String CONTEXT_DIC_TYPE			= "CONTEXT_DIC_TYPE";
	
	public static final String CONTEXT_DIC_DATA			= "CONTEXT_DIC_DATA";
	
	public static final String CONTEXT_GLOBAL_PARAMS		= "CONTEXT_GLOBAL_PARAMS";
	
	public static final String CITY_FILE_PATH				= "/city.json";
	
	public static final String CONTEXT_DIC_CITY			= "CONTEXT_DIC_CITY";
	
	public static final String SIM_IOC_10648				= "10648";
	
	/****************** 通用常量 结束 **************************/
	
	/****************** 可变常量 开始 **************************/
	
	public static String TEST_PROP					= "TEST";
	
	
	/****************** 可变常量 结束 **************************/
	

	
}
